package com.meritdata.cloud.data.manager.access.service;

import com.meritdata.cloud.data.manager.access.entity.TdDataSource;

import java.util.List;

public interface IDataSourceService {

    List<TdDataSource> list();

    TdDataSource getById(Long id);

    Boolean nameExist(Long id,String name);

    Boolean changeDbStatusById(int enable, Long id);

    Boolean delete(Long id);

    TdDataSource create(String name, String description, String url, String user, String password, int enable, int maxActive, int initialSize, int maxWait, String info, int enableCollection, String type);

    TdDataSource update(Long id, String name, String description, String url, String user, String password, int enable, int maxActive, int initialSize, int maxWait, String info, int enableCollection, String type);

    Boolean connectionTest(String url, String user, String password, String info, String type);
}
